<%@ page language="java" contentType="text/html;charset=UTF-8"%>
<%@ include file="/static/include/taglib.jsp"%>
<!DOCTYPE html >
<html>
<head>
 <meta name="viewport" content="width=device-width" />
 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />  
 <title>后台管理--机构列表</title>
 <link href="${ctxStatic}/layui/css/layui.css" rel="stylesheet" />
 <link href="${ctxStatic}/css/kpiui.css" rel="stylesheet" />
 <script src="${ctxStatic}/js/jquery-1.8.3.min.js?v=2.0" type="text/javascript"></script>
 <script src="${ctxStatic}/layui/layui.all.js"  type="text/javascript"></script>
 <script src="${ctxStatic}/js/common.js" type="text/javascript"></script>
 <script src="${ctxStatic}/js/usualassessment/template.js"  type="text/javascript"></script>

</head>
<body>
<div class="currentnav"><span class="tiao"></span><span class="navtitle">模板管理</span></div>
 <div class="tabregion">
 <div class="layui-tab layui-tab-brief" lay-filter="tabcontent">
  <ul class="layui-tab-title">
    <li lay-id="1"  class="layui-this">模板列表</li>
    <li lay-id="2">编辑/添加</li>
  </ul>
  
  <div class="layui-tab-content" style="height: 100px;">
    <div class="layui-tab-item layui-show">
      <div class="serchcontent">
	   <div class="search">
		  模板名称：<input type="text" class="text" style="width:200px" id="templatename"/>
		  <input type="button" class="button" value="查询" id="btnquery" onclick="vTemplate.searchtable()"  />
		  <input type="button" class="button" value="添加" onclick="vTemplate.openadd(0)" />
		 </div>
	 </div>
	 
	  <div class="content">
		   <div id="list" class="list" lay-filter="list"></div>
		   <script type="text/html" id="operate">
            <a class="layui-btn layui-btn-xs" lay-event="edit">编辑</a>
            <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del">删除</a>
           </script>
          
	  </div>
    </div>
    
    <div class="layui-tab-item">
     <form class="layui-form" id="formedit" name="formedit" action="create_templateindex" method="post" target="d41d8cd98f00b204e9800998ecf8427e">
      <iframe name="d41d8cd98f00b204e9800998ecf8427e" src="about:blank" style="display:none;"></iframe>
       <div class="indexcontent">
         <table nostyle="true" cellspacing="0" cellpadding="0" border="0" class="layui-table" style="margin:0;">
          <col width="100px"></col> 
          <col width="200px"></col> 
          <col width="100px"></col>
          <col ></col>
          <col width="117px"></col>
              <thead>
                <tr>
                  <th >姓名</th>
                  <th>考核内容</th>
                  <th >分值设置</th>
                  <th >评价标准</th>
                  <th >评价人</th>
                </tr> 
              </thead>
         </table>
       
       <div class="selftable">
         <table cellspacing="0" cellpadding="0" border="0" class="layui-table" style="margin:0;">
          <col width="100px"></col> 
          <col width="200px"></col> 
          <col width="100px"></col>
          <col ></col>
          <col width="100px"></col>
              <tbody>
               <c:forEach var="item" items="${lst}">
                 <tr>
                 <c:if test="${item.rowspan!=0 }">
                  <td rowspan="${item.rowspan}"><input name="uasscontent_${item.parentid}" class="layui-input layui-table-edit" type="text" value="${item.uasscontent}"></td>
                 </c:if>
                  <td><input name="uassingredients_${item.assindexid}" class="layui-input layui-table-edit" type="text" value="${item.uassingredients}"></td>
                  <td><input name="score_${item.assindexid}" class="layui-input layui-table-edit" type="text" value="${item.score}"></td>
                  <td><input name="evaluationstandard_${item.assindexid}" class="layui-input layui-table-edit" type="text" value="${item.evaluationstandard}"></td>
                  <td>
                   <input type="hidden" name="parentid_${item.assindexid}" value="${item.parentid}">
                  </td>
                </tr>
               </c:forEach>
               
              </tbody>
            </table>
       </div>
     </div>

      <div style="margin:0 auto;margin-top: 10px;width:90%">
        <table style="width:100%">
         <tr>
          <td style="width:400px">
           <div class="layui-form-item">
	        <label class="layui-form-label">模板名称：</label>
	        <div class="layui-input-block">
		    <input type="text" name="templatename" lay-verify="required" autocomplete="off" placeholder="请输入模板名称" class="layui-input"  >
	        </div>   
           </div> 
          </td>
           <td>
           <div class="layui-form-item">
	        <label class="layui-form-label">开始时间：</label>
	        <div class="layui-input-block">
		    <input type="text" id="begintime" name="begintime" lay-verify="required|date" autocomplete="off" placeholder="请输入有效期开始时间" class="layui-input"  >
	        </div>   
           </div> 
          </td>
          <td>
           <div class="layui-form-item">
	        <label class="layui-form-label">结束时间：</label>
	        <div class="layui-input-block">
		    <input type="text" id="endtime" name="endtime" lay-verify="required|date" autocomplete="off" placeholder="请输入有效期结束时间" class="layui-input"  >
	        </div>   
           </div> 
          </td>
         </tr>
         
       
         <tr>
          <td colspan="2">
           <div class="layui-form-item">
	        <label class="layui-form-label">描述：</label>
	        <div class="layui-input-block">
		     <textarea class="layui-textarea" placeholder="请输入内容"  name="templatedes" ></textarea>
	        </div>   
           </div> 
          </td>
          <td style="text-align: center">
           <button class="layui-btn" lay-submit="" lay-filter="demo1" id="btnsave">保存模板</button>
		   <input type="button" value="返回列表" class="layui-btn layui-btn-primary" onclick="vRole.OpTab(1)"/>
          </td>
         </tr>
         </table>
      </div>
      
      <input type="hidden" value="${pagestring.keyword1}" name="parentids" >
      <input type="hidden" value="${pagestring.keyword2}" name="assindexids" >
     </form>
     
    </div>
  </div>


</div>
</div>
		
		
</body>
</html>